
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import VueLazyload from 'vue-lazyload'

// require styles
import 'swiper/css/swiper.css'
import animated from 'animate.css'
import 'assets/css/common.css'
import 'assets/css/iconfont.css'

import fastClick from 'fastclick'

import '@/config/rem.js'

// or with options 也可以直接在这里设置参数
Vue.config.productionTip = false
Vue.use(animated)
Vue.use(VueAwesomeSwiper)
Vue.use(VueLazyload, {
  error: require('assets/img/placeholder.png'), // 图片加载失败时使用的图片源
  loading: require('assets/img/placeholder.png') // 图片加载的路径
})

// 解决移动端300ms延迟
fastClick.attach(document.body)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
